<?php echo $header; ?>
<div id="ja-container" class="wrap ja-r1">
		<div class="main">	
			<div class="ja-rs2-top">
				<div class="ja-rs2-tl">&nbsp;</div>
				<div class="ja-rs2-tr">&nbsp;</div>
			</div>
			
			<div class="ja-rs2-mid">
				<div class="ja-rs2-ml">
					<div class="ja-rs2-mr clearfix">
						<div id="ja-mainbody" style="width:70%">
						<div id="ja-main" style="width:100%">
								<div class="inner clearfix">	
									<div id="ja-contentwrap" class="ja-r1">
			<!-- CONTENT -->
			<div class="ja-mass ja-mass-top clearfix">
	
			<div class="ja-rs3-top"><div class="ja-rs3-tl">&nbsp;</div><div class="ja-rs3-tr">&nbsp;</div></div>
		
				<div class="ja-rs3-mid"><div class="ja-rs3-ml"><div class="ja-rs3-mr">
					<div class="ja-moduletable moduletable title-orange  clearfix">
					<?php if(!isset($root_name)){?>
						<h3><span><strong class="first-word"><strong><?php echo $heading_title; ?></strong></strong></span></h3>
					<?php }else{?>	
						<h3><span><strong class="first-word"><strong><a href="<?php echo $root_href;?>"><?php echo $root_name;?></a></strong></strong><?php echo $heading_title; ?></span></h3>
					<?php }?>	
					<div class="ja-box-ct clearfix" style="padding-left:20px;padding-right:20px;">
		
					<!-- loop through images -->	
					<div class="image">
						<img width="200" height="200" alt="<?php echo $heading_title; ?>" title="<?php echo $heading_title; ?>" src="<?php echo $image; ?>" />
						<div class="shadow-large-article"></div>
					</div>					
				
			
			
			
		<!-- Videos section.  Will only show up if there are entries in the Video section of a post  -->
		
		
				<div class="clear"></div>
				<div id="features_article">
				<div class="inner">
					<div style="margin-bottom:20px;"><span class="date"><?php echo $date_available;?></span><span class="author"><?php echo $model;?></span></div>
					<div><?php echo $meta_description;?></div>
				</div><!-- end inner -->
				</div><!-- end features -->
				<?php foreach ($downloads as $download) {?>
					<div style="margin:10px 0px;font-size: 12px;"><a style="cursor: pointer;padding:8px 20px;" id="change" onclick="location = '<?php echo str_replace('&', '&amp;', $download['href']); ?>'" class="button"><span><?php echo $text_download; ?> <?php echo $download['name']; ?></span></a></div>	
				<?php }?>
				<p><?php echo $description; ?></p>
				<div id="social">
		 
		<a class="twitter" onclick="share_twitter();" title="Tweet this!">Tweet this page</a>
		
		<a class="stumbleupon" onclick="share_stumbleupon();" title="Share on StumbleUpon">Share on StumbleUpon</a>
		<a class="reddit" onclick="share_reddit();" title="Share on Reddit">Share on Reddit</a>
		<a class="digg" onclick="share_digg();" title="Share on Digg">Share on Digg</a>
		
		<a class="delicious" onclick="share_delicious();"  title="Share on Delicious">Share on Delicious</a>
		
		<a class="facebook" onclick="share_facebook();" title="Share in Facebook">Share in Facebook</a>
		
		</div>
		<div class="clearleft"></div>
		
		<div class="page-break"></div>
		
		<h4><?php echo $tab_related; ?></h4>
		<div>
		<ul>
			 <?php if ($articles) { ?>
		        <?php for ($j = 0; $j < sizeof($articles); $j++) { ?>
		        
		          <li><?php if (isset($articles[$j])) { ?>
		            <a href="<?php echo str_replace('&', '&amp;', $articles[$j]['href']); ?>"><?php echo $articles[$j]['name']; ?></a>(
		            <span style="color: #999; font-size: 11px;"><?php echo $articles[$j]['date_available']; ?></span>)
		            
		            <?php } ?></li>		          
		        <?php } ?>
		      </table>
		      <?php } else { ?>
		      <div style="background: #F7F7F7; border: 1px solid #DDDDDD; padding: 10px; margin-bottom: 10px;"><?php echo $text_no_related; ?></div>
		      <?php } ?>
      		</ul>
		</div>	
		</div><!-- end post -->
		
		
		
		
	<script type="text/javascript">
			
		function share_facebook()
		{
			var	u=location.href;
			var t=document.title;
			window.open("http://www.facebook.com/share.php?u="+encodeURIComponent(u)+"&t="+encodeURIComponent(t));
		
		}
		
		function share_twitter()
		{
			var	uvnn=location.href;
			var tvnn=document.title;
			window.open("http://twitter.com/home?status=" + encodeURIComponent(uvnn));
		}
		
		function share_stumbleupon()
		{
			var	uvnn=location.href;
			var tvnn=document.title;
			window.open("http://www.stumbleupon.com/submit?url=" + encodeURIComponent(uvnn));
		}
		
		function share_reddit()
		{
			var	uvnn=location.href;
			var tvnn=document.title;
			window.open("http://www.reddit.com/submit?url=" + encodeURIComponent(uvnn));
		}
		
		function share_digg()
		{
			var	uvnn=location.href;
			var tvnn=document.title;
			window.open("http://digg.com/submit?phase=2&amp;amp;url=" + encodeURIComponent(uvnn));
		}
		function share_delicious()
		{
			var	uvnn=location.href;
			var tvnn=document.title;
			window.open("http://del.icio.us/post?url=" + encodeURIComponent(uvnn));
		}
	</script>
	</div></div></div></div>
		
					<div class="ja-rs3-bot"><div class="ja-rs3-bl">&nbsp;</div><div class="ja-rs3-br">&nbsp;</div></div>
					</div>
					</div>
				</div>
			</div>
	<!-- //CONTENT -->
			</div>
		<!-- RIGHT COLUMN-->
		<?php echo $column_right; ?>
		<!-- END RIGHT COLUMN--> 
	</div></div></div></div></div>
<?php echo $footer; ?> 